package com.patentbackend.patentmanage.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "patent") // 与application.properties中的前缀匹配
public class FileStorageConfig {
    private String uploadPath; // 对应patent.upload-path
    private String exportPath; // 对应patent.export-path

    // Getters and Setters
    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getExportPath() {
        return exportPath;
    }

    public void setExportPath(String exportPath) {
        this.exportPath = exportPath;
    }
}